<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />	
	<title>后台首页 - 欢迎使用商城系统</title>
	<link type="text/css" rel="stylesheet" href="http://localhost/mushroom/Application/Common/css/style.css" />
	<script type="text/javascript" src="../../include/js/jquery.js"></script>
</head>
<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<div class="bgimg"></div>
<div class="pagetop">
	<div class="head">
		<div class="logo fl"></div>

		<div class="admin_t fr">
			<ul>
				<li><a href=""><img border=0 src="http://localhost/mushroom/Application/Common/images/exit4.gif"></a></li>
				<li><a href="<?php echo U('Index/out');?>" onclick="return confirm('你确定要退出系统吗？')" ><img border=0 src="http://localhost/mushroom/Application/Common/images/exit3.gif"></a></li>
			</ul>
		</div>

		<div class="admin_u fr">
				<b>欢迎您-</b><a title="" target="_top" href=""><?php echo $hd['session']['adminname'];?></a>&nbsp;【超级管理员】 &nbsp;&nbsp;
		</div>
		<div class="clear"></div>
	</div>
</div>
 
<div class="content">
	<div class="main">
		<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<div class="left">
			<div class="fenlei">
				<h3>商品管理</h3>
				<ul>
					<li ><a href="<?php echo U('Goods/index');?>">商品列表</a></li>
					<li ><a href="<?php echo U('Goods/cat');?>">商品分类</a></li>
					
					<li ><a href="../goods/comment.html">商品评价</a></li>
				</ul>
			</div>
			<div class="fenlei">
				<h3>类型管理</h3>
				<ul>
					<li ><a href="<?php echo U('Type/index');?>">类型列表</a></li>
					<li ><a href="<?php echo U('Type/addattr');?>">添加类型</a></li>
				</ul>
			</div>
			<div class="fenlei">
				<h3>分类管理</h3>
				<ul>
					<li ><a href="<?php echo U('Classify/index');?>">分类列表</a></li>
					<li ><a href="<?php echo U('Classify/addcfy');?>">添加分类</a></li>
				</ul>
			</div>
			<div class="fenlei">
				<h3>品牌管理</h3>
				<ul>
					<li ><a href="<?php echo U('Brand/index');?>">品牌列表</a></li>
					<li ><a href="<?php echo U('Brand/addbr');?>">添加品牌</a></li>
				</ul>
			</div>
			<div class="fenlei">
				<h3>交易管理</h3>
				<ul>
					<li ><a href="../order/list.html">订单管理</a></li>
					<li ><a href="../order/payway.html">支付方式</a></li>
				</ul>
			</div>
			<div class="fenlei">
				<h3>信息管理</h3>
				<ul>
					<li ><a href="../article/cat.html">文章分类</a></li>
					<li ><a href="../article/list.html">文章列表</a></li>
					<li ><a href="../article/page.html">单页列表</a></li>
				</ul>
			</div>
			<div class="fenlei">
				<h3>用户管理</h3>
				<ul>
					<li ><a href="../user/list.html">会员列表</a></li>
					<li ><a href="../user/admin.html">管理列表</a></li>
				</ul>
			</div>
			<div class="fenlei">
				<h3>控制面板</h3>
				<ul>
					<li ><a href="../set/base.html">基本信息</a></li>
					<li ><a href="../set/cache.html">缓存管理</a></li>
					<li ><a href="../set/link.html">友情链接</a></li>
					<li ><a href="../set/ad.html">广告列表</a></li>
				</ul>
			</div>

</div>

<div class="right">
	<div class="now">
		<div class="now_l"></div>
		<div class="now_m">
			<span class="fl">商品列表</span>
			<span class="fr fabu"><a href="<?php echo U('Goods/add');?>">发布商品</a></span>
		</div>
		<div class="now_r"></div>
		<div class="clear"></div>
	</div>
	<div class="search">
		<div class="fl qiehuan">
			<a href="" class="sel">出售中商品</a>
			| <a href="" >下架的商品</a>
		</div>
		<div class="fr searbox">
			<form method="get">
				<input type="hidden" name="mod" value="product" />
				<input type="hidden" name="state" value="1" />
				商品名称：<input type="text" name="name" value="" class="inputtext" />
				<select name="category_id" class="inputselect">
				<option value="" href="?mod=product&state=1&page=1">全部分类</option>
								<option value="2" href="" >时尚女装</option>
								<option value="9" href="" >　 ┝ 上装</option>
								<option value="13" href="" >　 　　┝ T恤</option>
								<option value="14" href="" >　 　　┝ 衬衫</option>
								<option value="10" href="?mod=product&state=1&page=1&category_id=10" >　 ┝ 裙装</option>
								<option value="11" href="?mod=product&state=1&page=1&category_id=11" >　 ┝ 下装</option>
								<option value="12" href="?mod=product&state=1&page=1&category_id=12" >　 ┝ 外套</option>
								<option value="3" href="?mod=product&state=1&page=1&category_id=3" >时尚女鞋</option>
								<option value="5" href="?mod=product&state=1&page=1&category_id=5" >　 ┝ 魅力女靴</option>
								<option value="6" href="?mod=product&state=1&page=1&category_id=6" >　 ┝ 时尚单鞋</option>
								<option value="7" href="?mod=product&state=1&page=1&category_id=7" >　 ┝ 休闲帆布</option>
								<option value="8" href="?mod=product&state=1&page=1&category_id=8" >　 ┝ 坡跟鞋</option>
								<option value="4" href="" >潮流女包</option>
								</select>
				<select name="filter" class="inputselect">
				<option value="" href="?mod=product&state=1&page=1">全部商品</option>
								<option value="istuijian|1" href="" >推荐商品</option>
								<option value="wlmoney|0" href="" >包邮商品</option>
								<option value="num|0" href="" >售空商品</option>
								</select>
				<select name="orderby" class="inputselect">
				<option value="" href="?mod=product&state=1&page=1">默认排序</option>
								<option value="clicknum|desc" href="" >浏览量(多到少)</option>
								<option value="clicknum|asc" href="" >浏览量(少到多)</option>
								<option value="sellnum|desc" href="" >销售量(多到少)</option>
								<option value="sellnum|asc" href="" >销售量(少到多)</option>
								<option value="num|desc" href="" >库存量(多到少)</option>
								<option value="num|asc" href="" >库存量(少到多)</option>
								<option value="collectnum|desc" href="" >收藏数(多到少)</option>
								<option value="collectnum|asc" href="" >收藏数(少到多)</option>
								<option value="asknum|desc" href="" >咨询数(多到少)</option>
								<option value="asknum|asc" href="" >咨询数(少到多)</option>
								<option value="commentnum|desc" href="" >评价数(多到少)</option>
								<option value="commentnum|asc" href="" >评价数(少到多)</option>
								</select>
				<input type="submit" value="搜索" class="input2" />
			</form>
		</div>
		<div class="clear"></div>
	</div>
	<form method="post" id="form">
	<table border="0" cellspacing="0" cellpadding="0" class="list">
	<tr>
		<td class="bgtt" width="10"><input type="checkbox" name="checkall" onclick="pe_checkall(this, 'product_id')" /></td>
		<td class="bgtt" width="50">ID号</td>
		<td class="bgtt" width="">商品名称</td>
		<td class="bgtt" width="80">商品分类</td>
		<td class="bgtt" width="80">单价(元)</td>
		<td class="bgtt" width="80">售出/库存</td>
		<td class="bgtt" width="50">浏览</td>
		<td class="bgtt" width="88">操作</td>
	</tr>
		<tr>
		<td><input type="checkbox" name="product_id[]" value="25" /></td>
		<td>25</td>
		<td class="aleft">
			<span class="fl mar5" style="border:1px solid #ddd"><img src="http://localhost/l/data/cache/thumb/2014-07/thumb_60x60_20140720210131u.jpg" width="45" height="45"></span>
			<a class="cblue" href="http://localhost/l/product/25" target="_blank">古奇天伦2014新款夏季女凉鞋防水台高跟鞋粗跟罗马厚底鞋舒适女鞋 增高凉</a><span class="cred">[荐]</span>		</td>
		<td class="font13">时尚女鞋</td>
		<td><span class="num font16 cred strong">400.0</span></td>
		<td><span class="font14 corg num strong">0</span>/34</td>
		<td>0</td>
		<td>
			<a href="" class="shuxing">货品列表</a>
			<a href="<?php echo U('Goods/editgd');?>" class="admin_edit mar3">修改</a>
			<a href="" class="admin_del" onclick="return pe_cfone(this, '删除')">删除</a>
		</td>
	</tr>

		<tr>
		<td class="bgtt"><input type="checkbox" name="checkall" onclick="pe_checkall(this, 'product_id')" /></td>
		<td class="bgtt" colspan="8">
			<span class="fl">
				<button href="" onclick="return pe_cfall(this, 'product_id', 'form', '批量删除')">批量删除</button>
				<button href="" onclick="return pe_cfall(this, 'product_id', 'form', '批量上架')">批量上架</button>
				<button href="" onclick="return pe_cfall(this, 'product_id', 'form', '批量下架')">批量下架</button>
				<button href="" onclick="return pe_cfall(this, 'product_id', 'form', '批量推荐')">批量推荐</button>
				<button href="" onclick="return pe_cfall(this, 'product_id', 'form', '取消推荐')">取消推荐</button>
			</span>
			<span class="fenye"><ul class='fr'><li><a href='?mod=product&state=1&page=1'>首页</a></li><li><a href='?mod=product&state=1&page=1' class='sel'>1</a></li><li><a href='?mod=product&state=1&page=2'>2</a></li><li><a href='?mod=product&state=1&page=2'>末页</a></li></ul><style type="text/css"> 
.fenye li{float:left; font-family:Arial, Helvetica, sans-serif; margin-left:6px; display:inline; line-height:24px;}
.fenye a{border:1px #C2D5E3 solid; padding:0 8px; color:#0066CC; background:#fff; float:left;  height:24px;}
.fenye a:hover{background:#fff5f5; border:1px #76a5c8 solid;}
.fenye .sel{background:#E5EDF2; color:#333; font-weight:bold; border:1px #C2D5E3 solid;  padding:0 8px;}
</style></span>
		</td>
	</tr>
	</table>
	</form>
</div>
<script type="text/javascript"> 
$(function(){
	$("select").change(function(){
		window.location.href = 'admin.php' + $(this).find("option:selected").attr("href");
	})
})
</script>
		<div class="clear"></div>
	</div>
	<div class="foot">Copyright <span class="num">&copy;</span> 2014-2017 <a target="_blank" href="#"></a> 版权所有</div>
</div>
<script type="text/javascript"> 
$(function(){
	$(".list").find("tr").hover(
		function(){
			if ($(this).find("td").hasClass("bgtt")) return;
			$(this).find("td").css("background-color", "#ffffdd");
		},
		function(){
			if ($(this).find("td").hasClass("bgtt")) return;
			$(this).find("td").css("background-color", "#fff");
		}
	)
})
</script>
</body>
</html>

